from django.conf.urls import patterns, url, include
from django.views.generic import TemplateView

# Uncomment the next two lines to enable the admin:
from django.contrib.auth.views import login, logout
from django.contrib import admin
admin.autodiscover()


urlpatterns = patterns('',

)

urlpatterns = patterns('omstang',
    # Default:
    url(r'^humans\.txt$', TemplateView.as_view(template_name="humans.txt")),
    url(r'^robots\.txt$', TemplateView.as_view(template_name="robots.txt")),
      
    # Main:
    url(r'^$', 'views.Home', name='home'),
    url(r'^touch/$', 'views.Touch', name='touch'),
    # url(r'^omstang/', include('omstang.foo.urls')),
    url(r'^stock/', include('stock.urls')),
    url(r'^cashflow/', include('cashflow.urls')),
    
    # Uncomment the admin/doc line below to enable admin documentation:
    # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    url(r'^admin/', include(admin.site.urls)),
    
    url(r'^accounts/login/$',  login),
    url(r'^accounts/logout/$', logout),
    url(r'^accounts/profile/$', 'user.view.UserProfile'),
    #url(r'^accounts/profiles/', include('profiles.urls')),
    url(r'^accounts/register/$', 'user.view.UserRegister'),
)
